package com.koron.order.defect.feign;

import com.koron.bean.base.Response;
import com.koron.common.core.feignConfig.FeignFallbackFactory;
import com.koron.order.defect.bean.dto.DefectLevelAddDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @ClassName DefectLevelFeign
 * @description
 * @Author zhouj
 * @Date 2022/2/10 10:06
 */
@FeignClient(value = "eam-service-configure", fallbackFactory = FeignFallbackFactory.class)
public interface DefectLevelFeignService {

    @GetMapping("/defectlevel/queryAllByLevel")
    Response<List<DefectLevelAddDto>> queryAllByLevel(@RequestParam("level") String level);

}
